package com.tc.activiti.user.mapper;

import com.tc.activiti.user.entity.SysRole;
import com.tc.activiti.user.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysRoleMapper {

    int deleteByPrimaryKey(Long roleId);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Long roleId);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    List<SysRole> getGroupsByUserName(Long userId);

    List<SysRole> findAll();
}